replace (someone) in (someone's) affections

Translations
prendre la place de quelqu’un dans le cœur de quelqu’un
Definitions
To take the place of another person in someone's feelings of love or fondness, often implying that the original person is no longer the object of affection.